package com.ld.hpfs.common.utils;

import java.util.Properties;

import javax.servlet.ServletContext;

import org.springframework.context.ApplicationContext;

public class Const {
	public static final String SESSION_SECURITY_CODE = "sessionid";
	public static final String SESSION_USER = "sessionUser";
	public static final String SESSION_USER_RIGHTS = "sessionUserRights";
	public static final String SESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String NO_INTERCEPTOR_PATH = ".*/((updatePassword)|(gotoUpdatePassword)|(placeTypeAPI)|(login)|(logout)|(addUser)|(getPassword)|(add)|(getAllUser)|(delFeed)|(loginDefault)|(getReportFeed)|(deleteReport)|(getFeedDetail)|(getFeedChart)|(getChartList)|(getResponseCode)|(facebookLogin)).*";	//不对匹配该值的访问路径拦截（正则）
	public static final String ADDUSER_PATH = ".*/((addUser)).*";	
	public static final String PASSWORD_PATH = ".*/((getPassword)).*";	
	public static final String ACTIVITY_POST_PATH = ".*/((publish)).*";
	public static final String ACTIVITY_COMMENT_PATH = ".*/((addComment)).*";	
	public static ApplicationContext WEB_APP_CONTEXT = null;
	public static ServletContext SERVLET_CONTEXT = null;//该值会在web容器启动时由WebAppContextListener初始化
	public static String CONTENT_PATH = null;
	public static String REAL_PATH = null;
	public static Properties PROPERTIES = null;
	public static String INVALID_PLACE_TYPE ="administrative_area_level_1,administrative_area_level_2,administrative_area_level_3,colloquial_area" +
			",country,floor,intersection,locality,natural_feature,neighborhood,political,point_of_interest,post_box,postal_code,postal_code_prefix," +
			"postal_town,premise,room,route,street_address,street_number,sublocality,sublocality_level_4,sublocality_level_5,sublocality_level_3,sublocality_level_2," +
			"sublocality_level_1,subpremise,transit_station";
}
